package chapter10;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/3/9 14:08
 */
public class Parcel7 {
    public static void main(String[] args) {
        Parcel7 parcel7 = new Parcel7();
        Contents contents = parcel7.contents();
    }

    public Contents contents() {
        return new Contents() {
            private int anInt = 11;

            @Override
            public int value() {
                return anInt;
            }
        };
    }
}
